package com.jz.client.controller;


import com.alibaba.nacos.common.utils.Md5Utils;
import com.jz.client.entity.Account;
import com.jz.client.service.AccountService;
import com.jz.client.service.impl.AccountServiceImpl;
import com.yj.entity.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jz
 * @since 2021-03-14
 */
@RestController
@RequestMapping("account")
public class AccountController {

    @Autowired
    private AccountService accountService;



    //注册
    @GetMapping("register")
    public Message register(Account account){
        Message message=accountService.insertAccount(account);
        return message;
    }



}

